package com.sicheng.lc.周赛.分类.贪心;

/**
 * @author zsc
 * @version 1.0
 * @date 2022/7/31 20:23
 */
public class 分组的最大数量 {
    //https://leetcode.cn/problems/maximum-number-of-groups-entering-a-competition/
    public int maximumGroups(int[] grades) {
        return (int) ((Math.pow(1 + 8 * grades.length, 0.5) - 1) / 2);
    }
}
